/*
 * XML Type:  XMenuBar
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XMenuBar
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XMenuBar(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XMenuBarImpl extends com.seedwill.xul.widget.impl.XMenuImpl implements com.seedwill.xul.widget.XMenuBar
{
    private static final long serialVersionUID = 1L;
    
    public XMenuBarImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENABLEDICON$0 = 
        new javax.xml.namespace.QName("", "enabledIcon");
    private static final javax.xml.namespace.QName DISABLEDICON$2 = 
        new javax.xml.namespace.QName("", "disabledIcon");
    private static final javax.xml.namespace.QName MENUBARMODE$4 = 
        new javax.xml.namespace.QName("", "menuBarMode");
    
    
    /**
     * Gets the "enabledIcon" element
     */
    public java.lang.String getEnabledIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEDICON$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "enabledIcon" element
     */
    public org.apache.xmlbeans.XmlString xgetEnabledIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ENABLEDICON$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enabledIcon" element
     */
    public void setEnabledIcon(java.lang.String enabledIcon)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEDICON$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLEDICON$0);
            }
            target.setStringValue(enabledIcon);
        }
    }
    
    /**
     * Sets (as xml) the "enabledIcon" element
     */
    public void xsetEnabledIcon(org.apache.xmlbeans.XmlString enabledIcon)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ENABLEDICON$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ENABLEDICON$0);
            }
            target.set(enabledIcon);
        }
    }
    
    /**
     * Gets the "disabledIcon" element
     */
    public java.lang.String getDisabledIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DISABLEDICON$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "disabledIcon" element
     */
    public org.apache.xmlbeans.XmlString xgetDisabledIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DISABLEDICON$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "disabledIcon" element
     */
    public void setDisabledIcon(java.lang.String disabledIcon)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DISABLEDICON$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DISABLEDICON$2);
            }
            target.setStringValue(disabledIcon);
        }
    }
    
    /**
     * Sets (as xml) the "disabledIcon" element
     */
    public void xsetDisabledIcon(org.apache.xmlbeans.XmlString disabledIcon)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DISABLEDICON$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DISABLEDICON$2);
            }
            target.set(disabledIcon);
        }
    }
    
    /**
     * Gets the "menuBarMode" element
     */
    public com.seedwill.xul.widget.XMenuBarMode.Enum getMenuBarMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MENUBARMODE$4, 0);
            if (target == null)
            {
                return null;
            }
            return (com.seedwill.xul.widget.XMenuBarMode.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "menuBarMode" element
     */
    public com.seedwill.xul.widget.XMenuBarMode xgetMenuBarMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XMenuBarMode target = null;
            target = (com.seedwill.xul.widget.XMenuBarMode)get_store().find_element_user(MENUBARMODE$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "menuBarMode" element
     */
    public void setMenuBarMode(com.seedwill.xul.widget.XMenuBarMode.Enum menuBarMode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MENUBARMODE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MENUBARMODE$4);
            }
            target.setEnumValue(menuBarMode);
        }
    }
    
    /**
     * Sets (as xml) the "menuBarMode" element
     */
    public void xsetMenuBarMode(com.seedwill.xul.widget.XMenuBarMode menuBarMode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XMenuBarMode target = null;
            target = (com.seedwill.xul.widget.XMenuBarMode)get_store().find_element_user(MENUBARMODE$4, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XMenuBarMode)get_store().add_element_user(MENUBARMODE$4);
            }
            target.set(menuBarMode);
        }
    }
}
